.class Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;
.super Ljava/lang/Object;
.source "MediaDirectoryListAdapter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/picker/adapter/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "a"
.end annotation


# instance fields
.field public a:Landroid/widget/ImageView;

.field public b:Landroid/widget/TextView;

.field public c:Landroid/widget/TextView;

.field final synthetic d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/picture/picker/adapter/a;Landroid/view/View;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    sget p1, Les/x4;->iv_dir_cover:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->a:Landroid/widget/ImageView;

    .line 3
    sget p1, Les/x4;->tv_dir_name:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->b:Landroid/widget/TextView;

    .line 4
    sget p1, Les/x4;->tv_dir_count:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->c:Landroid/widget/TextView;

    return-void
.end method

.method private a(Landroid/content/Context;)Z
    .locals 2

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 1
    :cond_0
    instance-of v1, p1, Landroid/app/Activity;

    if-eqz v1, :cond_2

    .line 2
    check-cast p1, Landroid/app/Activity;

    .line 3
    invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {p1}, Landroid/app/Activity;->isDestroyed()Z

    move-result p1

    if-eqz p1, :cond_2

    :cond_1
    return v0

    :cond_2
    const/4 p1, 0x1

    return p1
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/picture/picker/entity/b;)V
    .locals 5

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/a;)Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/a;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/esfile/recorder/a;->a(Landroid/content/Context;)Lcom/esfile/recorder/d;

    move-result-object v0

    .line 6
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/recorder/d;->a(Ljava/lang/String;)Lcom/esfile/recorder/c;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    .line 7
    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->b(Lcom/esfile/screen/recorder/picture/picker/adapter/a;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->a(I)Lcom/esfile/recorder/c;

    move-result-object v0

    const v1, 0x3dcccccd    # 0.1f

    .line 8
    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->b(F)Lcom/esfile/recorder/c;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->a:Landroid/widget/ImageView;

    .line 9
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->b:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 12
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    const/4 v0, 0x1

    if-gt p1, v0, :cond_2

    .line 13
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->c:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    .line 14
    invoke-static {v4}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->c(Lcom/esfile/screen/recorder/picture/picker/adapter/a;)I

    move-result v4

    new-array v0, v0, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v0, v1

    invoke-virtual {v3, v4, v0}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    .line 15
    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 16
    :cond_2
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->c:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/a$a;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    .line 17
    invoke-static {v4}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->d(Lcom/esfile/screen/recorder/picture/picker/adapter/a;)I

    move-result v4

    new-array v0, v0, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v0, v1

    invoke-virtual {v3, v4, v0}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    .line 18
    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void
.end method
